package com.we.wecc.aw.mid.model.in;

import com.we.wecc.aw.db.model.AwardSpeech;
import com.we.wecc.aw.db.model.AwardWin;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.BeanUtils;

@ApiModel(value = "获奖人信息-入")
public class AwardWinIn {
    @ApiModelProperty("id,修改时必传")
    private int id;

    @ApiModelProperty("产品id")
    private int awardId;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("获奖地址id")
    private long addressId;

    @ApiModelProperty("是否已兑奖")
    private int cashPrizeState;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAwardId() {
        return awardId;
    }

    public void setAwardId(int awardId) {
        this.awardId = awardId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public long getAddressId() {
        return addressId;
    }

    public void setAddressId(long addressId) {
        this.addressId = addressId;
    }

    public int getCashPrizeState() {
        return cashPrizeState;
    }

    public void setCashPrizeState(int cashPrizeState) {
        this.cashPrizeState = cashPrizeState;
    }

    public AwardWin toAwardWin(){
        AwardWin as = new AwardWin();
        BeanUtils.copyProperties(this,as);
        return as;
    }
}
